package cn.com.duiba.millionaire.center.biz.service;

import cn.com.duiba.millionaire.center.api.dto.CreditsConsumeLogDto;
import cn.com.duiba.thirdparty.enums.CreditsConsumeTypeEnum;

import java.util.List;

/**
 * Created by xiaoxuda on 2018/2/11.
 */
public interface CreditsConsumeLogService {
    long insert(CreditsConsumeLogDto dto);

    CreditsConsumeLogDto findById(Long id);

    boolean updateStatus2Fail(Long id, String devBizId, String error4Admin, String error4Developer, String error4Consumer);

    boolean updateStatus2Success(Long id, String devBizId);

    List<CreditsConsumeLogDto> findNoFailByConsumerIdAndBizTypeAndBizId(Long consumerId,
                                                                           CreditsConsumeTypeEnum bizType,
                                                                           String bizNo);
}
